@extends('home/layout/index')

@section('content')
<div class="user-info">
		<!--标题 -->
		<div class="am-cf am-padding">
			<div class="am-fl am-cf"><strong class="am-text-danger am-text-lg"><a href="/home/user/index">个人信息</a></strong> / <small>Personal&nbsp;information</small></div>
		</div>
		
		 <!--个人信息 -->
		<div class="info-main">
			<form class="am-form am-form-horizontal" action="/home/user/inforupdate" method="post">
			<input type="hidden" name="id" value="{{ session('id')}}">
				{{ csrf_field() }}
				<div class="am-form-group">
					<label for="user-name2" class="am-form-label">真实姓名</label>
					<div class="am-form-content">
						<input type="text" id="user-name2" value="{{ $data['truename']}}" name="truename">
					</div>
				</div>
				<div class="am-form-group">
					<label class="am-form-label">性别</label>
					<div class="am-form-content sex">
						<label class="am-radio-inline">
							<input type="radio" name="sex" value="男" data-am-ucheck @if($data['sex'] == '男') checked @endif > 男
						</label>
						<label class="am-radio-inline">
							<input type="radio" name="sex" value="女" data-am-ucheck @if($data['sex'] == '女') checked @endif> 女
						</label>
						<label class="am-radio-inline">
							<input type="radio" name="sex" value="保密" data-am-ucheck @if($data['sex'] == '保密') checked @endif> 保密
						</label>
					</div>
				</div>
				
				<div class="am-form-group">
					<label for="user-name2" class="am-form-label">身份证号</label>
					<div class="am-form-content">
						<input type="text" id="user-name2" value="{{ $data['idcard']}}" name="idcard">
					</div>
				</div>
		
				
				<div class="am-form-group">
					<label for="user-phone" class="am-form-label">生日</label>
					<div class="am-form-content">
						<input id="user-phone"  type="text" value="{{ $data['birthday']}}" name="birthday">
		
					</div>
				</div>
				<div class="am-form-group">
					<label class="am-form-label">职业</label>
					<div class="am-form-content sex">
						<label class="am-radio-inline">
							<input type="radio" name="" value="学生" data-am-ucheck @if($data['indentity'] == '学生') checked @endif> 学生
						</label>
						<label class="am-radio-inline">
							<input type="radio" name="indentity" value="在职" data-am-ucheck @if($data['indentity'] == '在职') checked @endif> 在职
						</label>
						<label class="am-radio-inline">
							<input type="radio" name="indentity" value="无业游民" data-am-ucheck @if($data['indentity'] == '无业游民') checked @endif> 无业游民
						</label>
						<label class="am-radio-inline">
							<input type="radio" name="indentity" value="自由职业" data-am-ucheck @if($data['indentity'] == '自由职业') checked @endif> 自由职业
						</label>
						<label class="am-radio-inline">
							<input type="radio" name="indentity" value="其他" data-am-ucheck @if($data['indentity'] == '其他') checked @endif> 其他
						</label>
					</div>
				</div>
				<div class="am-form-group">
					<label class="am-form-label">个人情况</label>
					<div class="am-form-content sex">
						<label class="am-radio-inline">
							<input type="radio" name="personinfor" value="单身狗" data-am-ucheck @if($data['personinfor'] == '单身狗') checked @endif> 单身狗
						</label>
						<label class="am-radio-inline">
							<input type="radio" name="personinfor" value="恋爱" data-am-ucheck @if($data['indentity'] == '恋爱') checked @endif> 恋爱
						</label>
						<label class="am-radio-inline">
							<input type="radio" name="personinfor" value="已婚" data-am-ucheck @if($data['indentity'] == '已婚') checked @endif> 已婚
						</label>
						<label class="am-radio-inline">
							<input type="radio" name="personinfor" value="保密" data-am-ucheck @if($data['indentity'] == '保密') checked @endif> 保密
						</label>
					</div>
				</div>

    			<div class="am-form-group">
					<label for="user-birth" class="am-form-label">身高</label>
					<div class="am-form-content birth" >
						<div class="birth-select" >
							<select name="height" style="width:110px">
								<option value="">--请选择--</option>
	    						@for($i=100;$i<=230;$i++)
	    						<option  value="{{ $i }}" @if($i == $data['height']) selected @endif> {{ $i }} </option>
	    						@endfor
							</select><label for="user-birth" style="font-size:16px"> cm</label>

						</div>
					</div>		
				</div>
				<div class="am-form-group">
					<label for="user-birth" class="am-form-label">体重</label>
					<div class="am-form-content birth" >
						<div class="birth-select" >
							<select name="weight" style="width:110px">
    						<option value="">--请选择--</option>
    						@for($i=30;$i<=150;$i++)
    						<option  value="{{ $i }}" @if($i == $data['weight']) selected @endif> {{ $i }} </option>
    						@endfor
    					</select><label for="user-birth" style="font-size:16px"> Kg</label>
						</div>
					</div>		
				</div>
				<div class="am-form-group">
					<label class="am-form-label">血型</label>
					<div class="am-form-content sex">
						<label class="am-radio-inline">
							<input type="radio" name="indentity" value="bloodtype" data-am-ucheck @if($data['bloodtype'] == 'A') checked @endif> A型
						</label>
						<label class="am-radio-inline">
							<input type="radio" name="indentity" value="bloodtype" data-am-ucheck @if($data['bloodtype'] == 'B') checked @endif> B型
						</label>
						<label class="am-radio-inline">
							<input type="radio" name="indentity" value="bloodtype" data-am-ucheck @if($data['bloodtype'] == 'AB') checked @endif> AB型
						</label>
						<label class="am-radio-inline">
							<input type="radio" name="indentity" value="bloodtype" data-am-ucheck @if($data['bloodtype'] == 'O') checked @endif> O型
						</label>
						<label class="am-radio-inline">
							<input type="radio" name="indentity" value="bloodtype" data-am-ucheck @if($data['bloodtype'] == '稀有') checked @endif> 稀有
						</label>
					</div>
				</div>
				<div class="am-form-group">
					<label for="user-email" class="am-form-label">居住地</label>
					<div class="am-form-content">
						<input id="user-email" type="text" name="nowresidence" value="{{ $data['nowresidence'] }}">
					</div>
				</div>
				<div class="am-form-group">
					<label for="user-email" class="am-form-label">家乡</label>
					<div class="am-form-content">
						<input id="user-email" type="text" name="hometown" value="{{ $data['hometown'] }}">
					</div>
				</div>
				<div class="am-form-group">
					<label for="user-email" class="am-form-label">地址</label>
					<div class="am-form-content">
						<input id="user-email" type="text" name="adress" value="{{ $data['adress'] }}">
					</div>
				</div>
				<div class="am-form-group">
					<label for="user-email" class="am-form-label">签名</label>
					<div class="am-form-content">
						<textarea rows="" cols="" class="large" name="signature" value="{{ old('signature') }}">{{ $data['signature'] }}</textarea>
					</div>
				</div>
				<div class="info-btn">

					<input type="submit" value="保存修改" class="am-btn am-btn-danger">
					
				</div>
		
			</form>
		</div>

	</div>

@endsection